<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

namespace App\Model;

/**
 * @property int $id 
 * @property int $group_id 群id
 * @property int $user_id 用户id
 * @property int $type 用户类型 0用户 1管理员 2群主
 * @property string $group_nick 备注
 * @property string $add_time 入群时间
 * @property string $send_time 发送消息时间
 */
class GroupUser extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'group_user';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'group_id', 'user_id', 'type', 'group_nick', 'add_time', 'send_time'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'group_id' => 'integer', 'user_id' => 'integer', 'type' => 'integer'];
}
